import { Component, OnInit } from '@angular/core';
import {HttpClient} from "@angular/common/http";

@Component({
  selector: 'app-mymsg',
  templateUrl: './mymsg.component.html',
  styleUrls: ['./mymsg.component.scss']
})
export class MymsgComponent implements OnInit {
  public more: any = 'assets/more/u742.png';
  public cancel: any = 'assets/cancel/u988.png';
  public title: any = '商品详情';
  constructor( private http: HttpClient) { }

  ngOnInit() {
    const url = 'http://192.168.2.228:8080/user/detail?u_id=' + localStorage.user;
    this.http.get(url).subscribe( res => {
      console.log(res);
    });
  }

}
